﻿<%@ Page Language="c#" CodeBehind="Vehicles.aspx.cs" AutoEventWireup="false" Inherits="BEGDC.CC.Web.SystemManagement.Vehicles" %>

<%@ Register TagPrefix="uc1" TagName="PageNavigation" Src="../UserControls/PageNavigation.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title></title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/entity.css" rel="stylesheet" type="text/css" />
    <link href="../css/content/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />

    <script src="../js/jquery-1.4.4.min.js" type="text/javascript"></script>

    <script src="../js/jquery-ui.min.js" type="text/javascript"></script>

    <script src="../js/entity.js.aspx" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function OpenVehiclePane(ItemID) {
            var obj = window.showModalDialog('../Common/VehiclePopUp.aspx?ItemID=' + ItemID, this, 'dialogHeight:300px;dialogWidth:400px;dialogTop:px;dialogLeft:px;center:Yes;scroll:no;resizable:no;status:no;');
            if (obj == 'reload') {
                document.Form1.submit();
                //window.location.href = window.location.href;
            }
        }
        $(document).ready(function() {
            /*奇数行偶数行背景色*/
            $(".tablestyle tr:even").addClass("trwhitebg");
            $(".tablestyle tr:odd").addClass("trpurplebg");
            /*列表鼠标效果*/
            $('.tbody').mouseover(function() {
                $(this).addClass('trhover');
            })
            $('.tbody').mouseout(function() {
                $(this).removeClass('trhover');
            })
        });
    </script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <div class="mainbox">
        <uc1:PageNavigation ID="PageNavigation1" runat="server"></uc1:PageNavigation>
        <a href="../UserControls/PageNavigation.ascx"></a>
        <table id="Table9" cellspacing="0" cellpadding="0">
            <!--DWLayoutTable-->
            <tr>
                <td>
                    <table id="Table4" cellspacing="0" cellpadding="0">
                        <tr>
                            <td>
                                <!--tab区域-->
                                <div class="tabbox purplebg_dark">
                                    <ul class="tabpos">
                                        <li><span class="tab_active">
                                            <%=Resources.PageTitles.ASBVehicleManagement%></span></li>
                                    </ul>
                                </div>
                                <div class="formbox5 padding_lft5">    
                                    <span class="float_lft">Vehicle&nbsp;Type (车辆类型):</span>
                                    <span class="float_lft padding_lft20">
                                        <asp:DropDownList ID="Dp_VehicleType" runat="server" AutoPostBack="True" CssClass="formfont width120">
                                            <asp:ListItem Value="Alcatel" Selected="True">Alcatel-Lucent Vehicle</asp:ListItem>
                                            <asp:ListItem Value="Lease">Lease Vehicle</asp:ListItem>
                                        </asp:DropDownList>
                                    </span>
                                </div>
                                <div class="formbox ">
                                    <span class=" float_lft">
                                        <input type="button" onclick="javascript:OpenVehiclePane(0);" value="Add" class="btn" title="Add (新增)" />
                                    </span>
                                </div>    
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table width="100%" cellspacing="0" cellpadding="0">
                                    <!--DWLayoutTable-->
                                    <tr>
                                        <td>
                                            <asp:DataGrid ID="DG_Vehicle" runat="server" AutoGenerateColumns="False" CssClass="tablestyle">
                                                <SelectedItemStyle></SelectedItemStyle>
                                                <ItemStyle CssClass="tbody"></ItemStyle>
                                                <HeaderStyle CssClass="thead"></HeaderStyle>
                                                <FooterStyle></FooterStyle>
                                                <Columns>
                                                    <asp:BoundColumn Visible="False" DataField="Id" HeaderText="Id"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="VehicleTypeName" HeaderText="Vehicle Name<br/>车辆名称">
                                                    </asp:BoundColumn>
                                                    <asp:BoundColumn DataField="VehicleSource" HeaderText="Vehicle Type<br/>车辆类型"></asp:BoundColumn>
                                                    <asp:BoundColumn DataField="Price" HeaderText="Price<br/>价格"></asp:BoundColumn>
                                                    <asp:TemplateColumn HeaderText="Action<br/>操作">
                                                        <HeaderTemplate>
                                                            Action<br />
                                                            操作
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:ImageButton ID="Btn_Vehicle_Edit" runat="server" ToolTip="Edit (编辑)" ImageUrl="../images/COMEDIT.GIF">
                                                            </asp:ImageButton><font>&nbsp;</font>
                                                        </ItemTemplate>
                                                        <ItemStyle Width="25px" HorizontalAlign="Center" />
                                                    </asp:TemplateColumn>
                                                </Columns>
                                            </asp:DataGrid>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="padding_lft5">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
     <%--页面刷新时显示--%>
    <div id="dialog-message" title="Loading..." style="display: none">
        <p>
            <br />
            <span class="entity-loading"></span><span>Operation in process, please wait...<br />
                <br />
                处理中, 请稍候。。。</span>
        </p>
    </div>

</body>
</html>
